package com.mingshashan.building.easy.core.common;

/**
 * EasyConstants
 *
 * @author jasonxu
 */
public class EasyConstants {
    public static final String API_PATH_PREFIX = "/api";

    public static final String SSO_TOKEN = "X-Auth-Token-0";
    public static final String X_ER_GLOBAL_ID = "X-Easy-Global-Id";
    public static final String X_ER_REQUEST_TIME = "X-Easy-Request-Time";
    public static final String X_ER_REQUEST_ID /* Request Id */ = "X-Easy-Request-Id";
    public static final String CONTEXT_TOKEN = "token";
    public static final String HHN_AUTHORIZATION = "Authorization"; // HHN = Http Header Name
    public static final String HHN_CONTNT_TYPE = "Content-Type"; // HHN = Http Header Name

    public static final int DEFAULT_BEGIN_PAGE = 0;
    public static final String DEFAULT_BEGIN_PAGE_VALUE = "" + DEFAULT_BEGIN_PAGE;
    public static final int DEFAULT_PAGE_SIZE = 10;
    public static final String DEFAULT_PAGE_SIZE_VALUE = "" + DEFAULT_PAGE_SIZE;
    public static final String ACTION_PAGING_BY_CRITERIA = "page-search";
    public static final String ACTION_FIND_BY_CRITERIA = "search";

    public static final String STATUS_ENABLED = "ENABLED";
    public static final String STATUS_DISABLED = "DISABLED";


    public static final byte NOT_DELETED = 0;
    public static final byte DELETED = 1;


    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATE2_FORMAT = "yyyy.MM.dd";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_TIME2_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS";
    public static final String TIME_ZONE = "GMT+8";
    public static final String RESPONSE_ERROR_CODE = "99999999";
}
